<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Administration/main.master"
    CodeFile="CategoryTemplates.aspx.cs" Inherits="Tathata.Web.Administration.Administration_CategoryTemplates" %>

<asp:Content ID="c1" ContentPlaceHolderID="cph1" runat="Server">
    <h4>
        Category templates</h4>
    <asp:GridView ID="gvCategoryTemplates" runat="server" AutoGenerateColumns="False"
        Width="100%">
        <Columns>
            <asp:BoundField DataField="CategoryTemplateID" HeaderText="CategoryTemplateID" Visible="False">
            </asp:BoundField>
            <asp:TemplateField HeaderText="Name" ItemStyle-Width="60%">
                <ItemTemplate>
                    <a href="CategoryTemplateDetails.aspx?CategoryTemplateID=<%#Eval("CategoryTemplateID")%>">
                        <%#Server.HtmlEncode(Eval("Name").ToString())%>
                    </a>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Display Order" HeaderStyle-HorizontalAlign="Center"
                ItemStyle-Width="20%" ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <%#Eval("DisplayOrder")%>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Edit" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="20%"
                ItemStyle-HorizontalAlign="Center">
                <ItemTemplate>
                    <a href="CategoryTemplateDetails.aspx?CategoryTemplateID=<%#Eval("CategoryTemplateID")%>">
                        Edit</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <br>
    <input type="button" onclick="location.href='CategoryTemplateAdd.aspx'" value="Add new"
        id="btnAddNew" class="adminButton" />
    <br />
</asp:Content>
